import request from '@/utils/request'


//获取节点数量
export function getNodeCount(data) {
  return request({
    url: '/home/getNodeCount',
    method: 'post',
    data
  })
}
//获取日收购折线图
export function getDrawLine1List(data) {
  return request({
    url: '/home/getDayCount',
    method: 'post',
    data
  })
}
//获取品种数量
export function getProCount() {
  return request({
    url: '/home/getProCount',
    method: 'post',

  })
}

//获取仓容数量
export function getCrSumCount() {
  return request({
    url: '/home/getCrSumCount',
    method: 'post',

  })
}
//获取仓容比例图
export function getCrSumCountByArea(data) {
  return request({
    url: '/home/getCrSumCountByArea',
    method: 'post',
    data
  })
}

//获取当前收购区间
export function getFromYear() {
  return request({
    url: '/home/getFromYear',
    method: 'post',

  })
}

//获取日历时间变化后的数据
export function getDayChangeCount(data) {
  return request({
    url: '/home/getDayChangeCount',
    method: 'post',
    data
  })
}

//获取当期收购量和上年同期收购量
export function getCountAndLastCount(data) {
  return request({
    url: '/home/getCountAndLastCount',
    method: 'post',
    data
  })
}


//获取仓容使用比例
export function getCrAllNum(data) {
  return request({
    url: '/home/getCrAllNum',
    method: 'post',
    data
  })
}

//获取当期总收购量
export function getYearPurchaseCount(data) {
  return request({
    url: '/home/getYearPurchaseCount',
    method: 'post',
    data
  })
}
//获取收购进度比例
export function getPurchaseProportion(data) {
  return request({
    url: '/home/getPurchaseProportion',
    method: 'post',
    data
  })
}
